package com.bocloud.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/12/27.
 */
public class Menu implements Serializable {
    private String menuId;//菜单编号
    private String menuName;//菜单名称
    private String pid;//本菜单的上级id
    private String url;
    private List<Menu> children;   //用于存储子节点

    public Menu() {
    }

    public Menu(String menuId, String menuName, String pid, String url, List<Menu> children) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.pid = pid;
        this.url = url;
        this.children = children;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuId='" + menuId + '\'' +
                ", menuName='" + menuName + '\'' +
                ", pid='" + pid + '\'' +
                ", url='" + url + '\'' +
                ", children=" + children +
                '}';
    }
}
